package com.sdx.console.live.web.query;

import com.ibeetl.admin.core.annotation.Query;
import com.ibeetl.admin.core.util.enums.CoreDictType;
import com.ibeetl.admin.core.web.query.PageParam;
import java.util.Date;
import com.sdx.common.utils.Utils;
/**
 *直播查询
 */
public class CourseLiveQuery extends PageParam {
    @Query(name = "直播主题", display = true)        
    private String liveTitle;
    @Query(name = "课程老师id", display = true)        
    private String teacherId;
    @Query(name = "归属省份 0、表示全国", display = true)        
    private Integer provinceId;
    @Query(name = "直播开始时间", display = true)        
	private String startTime;
	private Date startTimeStart;
	private Date startTimeEnd;
    @Query(name = "直播状态 1、预约，2、直播中，3、回看", display = true)        
    private String liveStatus;
    @Query(name = "在线状态 1、上线，0、下线", display = true)        
    private String courseStatus;
    public String getLiveTitle(){
        return  liveTitle;
    }
    public void setLiveTitle(String liveTitle ){
        this.liveTitle = liveTitle;
    }
    public String getTeacherId(){
        return  teacherId;
    }
    public void setTeacherId(String teacherId ){
        this.teacherId = teacherId;
    }
    public Integer getProvinceId(){
        return  provinceId;
    }
    public void setProvinceId(Integer provinceId ){
        this.provinceId = provinceId;
    }
	public String getStartTime(){
		return  startTime;
	}
	public void setStartTime(String startTime ){
		this.startTime = startTime;
		Date[] timePair = Utils.parseQueryTime(startTime);
		if (timePair!=null && timePair[0]!=null) {
			this.startTimeStart = timePair[0];
		}
		if (timePair!=null && timePair.length==2 && timePair[1]!=null) {
		this.startTimeEnd = timePair[1];
		}

	}
	public Date getStartTimeStart(){
		return  startTimeStart;
	}
	public void setStartTimeStart(Date startTimeStart ){
		this.startTimeStart = startTimeStart;
	}
	public Date getStartTimeEnd(){
		return  startTimeEnd;
	}
	public void setStartTimeEnd(Date startTimeEnd ){
		this.startTimeEnd = startTimeEnd;
	}
    public String getLiveStatus(){
        return  liveStatus;
    }
    public void setLiveStatus(String liveStatus ){
        this.liveStatus = liveStatus;
    }
    public String getCourseStatus(){
        return  courseStatus;
    }
    public void setCourseStatus(String courseStatus ){
        this.courseStatus = courseStatus;
    }
 
}
